<!doctype html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>

<div id="app">

    <parent></parent>

</div>

</body>
<script src="../../../vender/vue@2.4.2.js"></script>
<script>
    var Child={
        template:`<div class="child"><p>From child.</p><slot text="Hello child."></slot></div>`
    };


    var Parent={
        template:`<div class="parent">
            <child>
                <template scope="props">
                    <p>{{props.text}}</p>
                </template>
            </child>
        </div>`,
        components:{
            'child':Child
        }
    };
    var app=new Vue({
        el:'#app',
        components:{
            'parent':Parent
        }
    });


</script>
</html>